<#if isRoot>
[{
	"text": "<a href='v_list.do' target='listFrame'>根模块</a>",
	"classes": "folder"
	<#if list?size gt 0>,
	"expanded": true,
	"children": [
	<#list list as module>
	<#if module.leaf gt 0>
		{
		"id": "${module.moduleId}",
		"text": "${module.name}",
		"isCheckBox":true,
		"valueContent":"${module.moduleId}",
		"classes": "<#if module.leaf gt 0>folder<#else>file</#if>",
		"hasChildren": <#if module.leaf gt 0>true<#else>false</#if>
		}<#if module_has_next>,</#if>
	</#if>
	</#list>
	]
	</#if>
}]
<#else>
	[
	<#list list as module>
		{
		"id": "${module.moduleId}",
		"text": "${module.name}",
		"isCheckBox":true,
		"valueContent":"${module.moduleId}",
		"classes": "<#if module.leaf gt 0>folder<#else>file</#if>",
		"hasChildren": <#if module.leaf gt 0>true<#else>false</#if>
		}<#if module_has_next>,</#if>
	</#list>
	]
</#if>
